home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- //
- // Procedure Name:
- // AEmaterialFacadeTemplate
- //
- // Description Name;
- // Creates the attribute editor controls for the materialFacade Node
- //
- // Input Value:
- // nodeName
- //
- // Output Value:
- // None
- //
-
- // global proc AEmaterialFacadeShadersNew ( string $surfaceShader,
- // string $volumeShader,
- // string $imageShader,
- // string $displacementShader,
- // string $defaultShadows )
- // {
- // setUITemplate -pst attributeEditorTemplate;
- //
- // attrNavigationControlGrp
- // -l "Surface Material"
- // -at $surfaceShader
- // surfaceShaderControl;
- //
- // attrNavigationControlGrp
- // -l "Volume Material"
- // -at $volumeShader
- // volumeShaderControl;
- //
- // attrNavigationControlGrp
- // -l "Image Material"
- // -at $imageShader
- // imageShaderControl;
- //
- // attrNavigationControlGrp
- // -l "Displacement Mat."
- // -at $displacementShader
- // displacementShaderControl;
- //
- // attrNavigationControlGrp
- // -l "Default Shadows"
- //// -at $defaultShadows
- //// defaultShadowsControl;
- //
- // setUITemplate -ppt;
- // }
- //
- // global proc AEmaterialFacadeShadersReplace ( string $surfaceShader,
- // string $volumeShader,
- // string $imageShader,
- // string $displacementShader,
- // string $defaultShadows )
- // {
- // attrNavigationControlGrp -edit
- // -at $surfaceShader
- // surfaceShaderControl;
- //
- // attrNavigationControlGrp -edit
- // -at $volumeShader
- // volumeShaderControl;
- //
- // attrNavigationControlGrp -edit
- // -at $imageShader
- // imageShaderControl;
- //
- // attrNavigationControlGrp -edit
- // -at $displacementShader
- // displacementShaderControl;
- //
- // attrNavigationControlGrp -edit
- // -at $defaultShadows
- // defaultShadowsControl;
- // }
-
-
- global proc AEmaterialFacadeTemplate ( string $nodeName )
- {
- AEswatchDisplay $nodeName;
- editorTemplate -beginScrollLayout;
- editorTemplate -beginLayout "Default Material Attributes" -collapse 0;
- // editorTemplate -callCustom "AEmaterialFacadeShadersNew"
- // "AEmaterialFacadeShadersReplace"
- // "surfaceShader"
- // "volumeShader"
- // "imageShader"
- // "displacementShader"
- // "defaultShadows";
- editorTemplate -endLayout;
-
- editorTemplate -suppress "surfaceShader";
- editorTemplate -suppress "volumeShader";
- editorTemplate -suppress "imageShader";
- editorTemplate -suppress "displacementShader";
- editorTemplate -suppress "defaultLights";
- editorTemplate -suppress "defaultShadows";
- editorTemplate -suppress "dagSetMembers";
- editorTemplate -suppress "dnSetMembers";
- editorTemplate -suppress "groupNodes";
- editorTemplate -suppress "usedBy";
- editorTemplate -suppress "unsolicited";
- editorTemplate -suppress "linkedLights";
- editorTemplate -suppress "ignoredLights";
- editorTemplate -suppress "linkedShadows";
- editorTemplate -suppress "ignoredShadows";
-
- editorTemplate -suppress "bogusAttribute";
-
- // include/call base class/node attributes
- AEobjectSetNoScroll $nodeName;
-
- // editorTemplate -addExtraControls;
- editorTemplate -endScrollLayout;
- }
-